<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CrateShopAttributeValueTable extends Migration
{
    public function up()
    {
        //类别属性 VALUE
        Schema::create('shop_attribute_value', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('attribute_id')->comment('类别属性ID');
            $table->string('attribute_value',50)->comment('属性值');
            $table->timestamps();
        });
    }
    public function down()
    {
        Schema::dropIfExists('shop_attribute_value');
    }
}
